package com.jml.springsecurity.core.social.qq.connect;

import com.jml.springsecurity.core.social.qq.api.QQ;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;


public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {

	//构造函数在子类参数可以随便，只要是构造父类时super中的参数和父类对应就可以了
	//providerId是提供商的唯一标识
	public QQConnectionFactory(String providerId, String appId, String appSecret) {
		super(providerId, new QQServiceProvider(appId, appSecret), new QQAdapter());
	}
}
